<?php $this->_extends('_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>

<table>
    <tr>
        <td><h2>投票主题</h2></br></td>
    </tr>
    <tr>
        <td><?php echo $vote->vote_name; ?></td>
    </tr>
    <tr>
        <td>发表时间：作者：<?php echo $creator; ?></td>
    </tr>
    <tr>
        <td><h2>投票摘要</h2></br></td>
    <tr>
        <td><?php echo $vote->vote_summary; ?></td>
    </tr>
    <tr>
        <td><?php echo $vote->vote_content; ?></td>
    </tr>
</table>

<h2>投票方式</h2></br>
<label>
<?php if ($vote->vote_type == 0) echo "单项选择"; else echo "多项选择"; ?>
</label>
</br>
<h2>投票选项</h2></br>
<?php foreach ($options as $option): ?>
<?php echo $option->option_content; ?></br>
<?php endforeach; ?>
</br>
<form action=<?php echo url('vote/Audit');?> method="post" name="mainform">
<input type="hidden" value="<?php echo $vote->vote_id;?>" name="vote_id">
<table>
<tr><td>
<input type="radio" value="pass" name="result" checked="checked">
<label>审核通过</label>
</td></tr>
<tr><td>
<input type="radio"  value="fail" name="result">
<label>审核失败</label>
</td></tr>
<tr><td>
<textarea name="reason" rows=5 cols=65 >请在这里输入审批意见</textarea>
</td></tr>
<tr><td>
<input type="submit" value="提交" >
</td></tr>
</table>
</form>
<?php $this->_endblock(); ?>
